//
//  Book.m
//  MyBook
//
//  Created by zhiyou on 16-3-19.
//  Copyright (c) 2016年 zhiyou. All rights reserved.
//

#import "Book.h"

@implementation Book
-(id)initWithDic:(NSDictionary *)dic{
    self=[super init];
    if(self){
          _kind=[[dic objectForKey:@"kind"]intValue];
        _bookname=[dic objectForKey:@"bookname"];
         _link=[dic objectForKey:@"link"];
         _author=[dic objectForKey:@"author"];
         _ImageName=[dic objectForKey:@"ImageName"];
         _detail=[dic objectForKey:@"detail"];
    }
    return self;
}
@end
